# Maintainer: Ray Donnelly <mingwandroid@gmail.com>

pkgname=pacman-mirrors
pkgver=20210325
pkgrel=1
pkgdesc="MSYS2 mirror list for use by pacman"
arch=('any')
url="https://www.msys2.org/dev/mirrors/"
license=('GPL')
source=(mirrorlist.msys
        mirrorlist.mingw32
        mirrorlist.mingw64
        mirrorlist.ucrt64)
sha256sums=('5f42bba7bbea81d5dbbbf88a29f76d49fee1ed4b9b009442e8752e54ce69c5e6'
            '2a7ed47552193f464e0ee2759245388e9eded1dfef6e248e8f38655786dec962'
            'b62d25ac09d4a44444201b62dce79d1537fcd92aa5e56acc1f991f2084e4ee1d'
            '49e84ff042c1593b5bc355f9c275ad37a79b9da0a48099ac3678b28dfb7e3a9b')

package() {
  mkdir -p ${pkgdir}/etc/pacman.d
  install -m644 ${srcdir}/mirrorlist.msys ${pkgdir}/etc/pacman.d/
  install -m644 ${srcdir}/mirrorlist.mingw32 ${pkgdir}/etc/pacman.d/
  install -m644 ${srcdir}/mirrorlist.mingw64 ${pkgdir}/etc/pacman.d/
  install -m644 ${srcdir}/mirrorlist.ucrt64 ${pkgdir}/etc/pacman.d/
}
